// Fill out your copyright notice in the Description page of Project Settings.


#include "UMG/HealthBarWidget.h"

#include "Character/EnemyCharacter.h"
#include "Helper/DebugHelper.h"

bool UHealthBarWidget::Initialize()
{
	if (!Super::Initialize())
	{
		return false;
	}

	HealthBar->PercentDelegate.BindUFunction(this, FName("GetHealthProgress"));
	return true;
}

float UHealthBarWidget::GetHealthProgress()
{
	return Owner->GetHealthProgress();
}
